﻿using SqlSugar;

namespace Raffles.OA.Data
{
    /// <summary>
    /// 用户角色类
    /// </summary>
    [SugarTable("Sys_UserRole")]
    public partial class UserRole : BaseEntity
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 角色Id
        /// </summary>
        public int RoleId { get; set; }
    }
    public partial class UserRole
    {
        [Navigate(NavigateType.OneToOne, nameof(UserId))]
        public User User { get; set; }
        [Navigate(NavigateType.OneToOne, nameof(RoleId))]
        public Role Role { get; set; }
    }
}
